#include <stdio.h>

int main() {
    int a[3][2] = {{10, 20}, {30, 40}, {50, 60}};
    int *p = &a[0][0];
    printf("%zd\n", p);
    printf("%zd\n", p + 1);
    printf("%zd\n", p + 2);
    printf("\n");

    p = a[0];
    printf("%zd\n", p);
    printf("%zd\n", p + 1);
    printf("%zd\n", p + 2);
    printf("\n");

    p = a[0];
    printf("%zd\n", p);
    printf("%zd\n", p + 1);
    printf("%zd\n", p + 2);
    printf("\n");

    p = &a[0];
    printf("%zd\n", p);
    printf("%zd\n", p + 1);
    printf("%zd\n", p + 2);
    printf("\n");

    p = &a;
    printf("%zd\n", p);
    printf("%zd\n", p + 1);
    printf("%zd\n", p + 2);
    printf("\n");
    return 0;
}